import { $ } from './library/jquery-module.js';
import { cookie } from './library/cookie.js';
// 搜索时加cookie
$('.btn.btn-warning.btn-lg').on('click', function() {
    let keyword = $('#search').val();
    // console.log(keyword);
    cookie.set('keyword', keyword);
    location.href = "./search.html";
});
$('#search').on('keyup', function(e) {
    if (e.keyCode == 13) {
        $('.btn.btn-warning.btn-lg').trigger('click');
    }
});